package com.itjeffrey.autocode.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itjeffrey.autocode.bo.ResInfoTbBO;
import com.itjeffrey.autocode.bo.req.ChangeAuthBO;
import com.itjeffrey.autocode.bo.req.IsEnableBO;
import com.itjeffrey.autocode.common.Result;
import com.itjeffrey.autocode.entity.ResInfoTbEntity;

import java.util.List;

/**
 * 服务接口
 * @author: admin
 * @date: 2021-03-28 12:35:25
 */
public interface ResInfoTbService extends IService<ResInfoTbEntity> {

    Result add(ResInfoTbBO resInfoTbBO);

    Result mod(ResInfoTbBO resInfoTbBO);

    Result delete(Integer id);

    Result queryList(ResInfoTbBO resInfoTbBO);

    List<ResInfoTbEntity> queryResInfosByRoleId(Integer roleId, String resType);

    Result queryAuthrizeResource(ResInfoTbBO resInfoTbBO);

    Result changeAuth(ChangeAuthBO changeAuthBO);

    Result isEnable(IsEnableBO isEnableBO);

    Result queryOne(Integer resId);
}